<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>二手书共享平台</title>
    <style>
        body {
            font-family: '微软雅黑', Arial, sans-serif;
            background-color: #f8f9fa;
            margin: 0;
            padding: 20px;
        }
        header {
            text-align: center;
            margin-bottom: 30px;
        }
        header h1 {
            color: #343a40;
            font-size: 2.5em;
        }
        header p {
            color: #6c757d;
            font-size: 1.2em;
        }
        #loginButton {
            position: absolute; /* 绝对定位 */
            right: 20px; /* 距离右边20px */
            top: 20px; /* 距离顶部20px */
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            background-color: #007BFF;
            color: white;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        #loginButton:hover {
            background-color: #0056b3;
        }
        #container {
            width: 1380px;
            height: 400px;
            margin: auto;
        }
        #container div {
            background-color: #ffffff;
            border-radius: 10px;
            padding: 20px;
            margin-right: 30px;
            width: 400px;
            height: 400px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s;
            float: left;
        }
        #container div:hover {
            transform: translateY(-5px);
        }
        #container div h2 {
            color: #f7f8f9;
            font-size: 1.5em;
            border-bottom: 2px solid #ffffff;
            padding-bottom: 10px;
        }
        #container div p {
            color: white;
        }
        a {
            display: inline-block;
            text-align: center;
            color: #ffffff;
            background-color: #007BFF;
            text-decoration: none;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            margin-top: 15px;
            transition: background-color 0.3s, transform 0.2s;
        }
        a:hover {
            background-color: #0056b3;
            transform: scale(1.05);
        }
        .footer {
            text-align: center;
            margin-top: 30px;
            color: #6c757d;
            width: 100%;
            height: 100px;
            overflow: hidden;
			position: absolute;
			bottom: 0px;
        }
        #section1 {
            background: url('img/shuji.jpg') no-repeat center center;
            background-size: cover;
        }
        #section2 {
            background: url('img/xj.jpg') no-repeat center center;
            background-size: cover;
        }
        #section3 {
            background: url('img/relax.jpg') no-repeat center center;
            background-size: cover;
        }
    </style>
</head>
<body>

<header>
   <button id="loginButton" onclick="window.location.href='login.html'">登录</button>
    <h1>欢迎来到资源共享平台</h1>
    <p>在这里，你可以找到心仪的二手书，分享你的笔记，与大家交流。</p>
</header>

<div id="container">
    <div id="section1">
        <h2>二手书区</h2>
        <p>在这里浏览和购买二手书籍。</p>
        <a href="二手书区.html">进入二手书区</a>
    </div>
    <div id="section2">
        <h2>笔记专区</h2>
        <p>分享你的学习笔记，与其他书友讨论。</p>
        <a href="demo2.html">进入笔记专区</a>
    </div>
    <div id="section3" style="margin-right: unset;">
        <h2>休息评论专区</h2>
        <p>在这里留下你的评论和建议。</p>
        <a href="demo.html">进入休息评论专区</a>
    </div>
</div>

<div class="footer">
    <p>版权所有 &copy; 2023 资源平台</p>
</div>

</body>
</html>
